package com.mr.dao.entity.product;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.mr.constants.Tables;
import com.mr.dao.entity.BaseEntity;

/**
 * @author Alex
 */
@Entity(name=Tables.WAREHOUSE)
public class Warehouse extends BaseEntity {
	private static final long serialVersionUID = -1227032305758009684L;
	private int country_loc;
	private String country_name;
	@OneToMany(mappedBy = "warehouse", cascade = CascadeType.PERSIST)
	private List<Product> products = new ArrayList<Product>(0);

	public int getCountry_loc() {
		return country_loc;
	}

	public void setCountry_loc(int country_loc) {
		this.country_loc = country_loc;
	}

	public String getCountry_name() {
		return country_name;
	}

	public void setCountry_name(String country_name) {
		this.country_name = country_name;
	}

	public List<Product> getProducts() {
		return products;
	}

	public void setProducts(List<Product> products) {
		this.products = products;
	}
}
